package com.ygqh.baby.ao;

public enum FileType {
	// 用在商品详情页
	ProductDetailImage("product", 800, 800),
	// 用在列表页
	ProductListImage("product", 400, 400),
	// 用在购物车、结算页、个人中心
	ProductShoppingCartImage("product", 200, 200),

	// 用在晒单列表页、晒单详情页等
	PublishDetailImage4One("publish", 480, 480), PublishDetailImage4Three("publish", 480, 640),
	PublishDetailImage4One640("publish", 640, 640),
	// 用在相关晒单模块中
	PublishRelativeImage("publish", 240, 320),

	// 用在商品详情页的评论列表的查看大图
	CommentBig("comment", 400, 400),
	// 用在商品详情页的评论列表中
	CommentList("comment", 200, 200),

	// 个人头像
	HeadImage("head", 200, 200),

	// 焦点图
	FocusImage("focus", 800, 800),
	// 临时文件
	Temp("temp"),
	// 临时文件
	QrCode("qrcode"),
	//微信支付 二维码
	PayCode("PayCode"),
	//前台首页
	Mall("Mall"),
	//分类页
	Category("Category"),
	//领券页
	Quan("Quan"),
	//领券页
	Quan30("Quan30"),
	//退换货
	Return("Return", 640, 640),
	Promotion("Promotion"),
	Contract("Contract"),
	ChangeContract("ChangeContract"),
	FrameCode("FrameCode"),
	YiJiaDian("YiJiaDian"),
	YiJiaDianUA("YiJiaDianUA"),
	Invoice("Invoice", 640, 640),
	NewProduct("NewProduct"),
	LifeCategory("LifeCategory"),
	LifeShop("LifeShop"),
	YiJiaDianCategory("YiJiaDianCategory");

	/** 目录名称 */
	private String name;
	/** 宽度(px) */
	private Integer width;
	/** 高度(px) */
	private Integer height;
	/** 最大尺寸(kb) */
	private Integer maxSize;

	private FileType(String name) {
		this.name = name;
	}

	private FileType(String name, Integer width, Integer height) {
		this.name = name;
		this.width = width;
		this.height = height;
	}

	private FileType(String name, Integer maxSize) {
		this.name = name;
		this.maxSize = maxSize;
	}

	private FileType(String name, Integer width, Integer height, Integer maxSize) {
		this.name = name;
		this.width = width;
		this.height = height;
		this.maxSize = maxSize;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Integer getMaxSize() {
		return maxSize;
	}

	public void setMaxSize(Integer maxSize) {
		this.maxSize = maxSize;
	}
}
